package Control;

import DALFactory.IDataCommentMapper;

public class CUserComment {

	/**
	 * @param args
	 */

	private IDataCommentMapper dcm;

	public CUserComment() {
		dcm = CCache.getCache().getDALFactory().CreateCommentMapper();
	}

	public boolean checkComment(int HID, int UID) {
		return dcm.checkComment(HID, UID);
	}

	public boolean insertComment(int HID, int UID, int Mark) {
		return dcm.InsertComment(HID, UID, Mark);
	}
	
	public int[] getStar(int HID)
	{
		return dcm.getStar(HID);
	}

}
